<?php
class Main_labelModel extends BaseModel
{
	var $table  = 'main_label';
	var $prikey = 'm_id';
	var $_name  = 'main_label';
	
	var $_relation = array(
			'belong_to_brand' => array(
				'model' => 'brand',
				'type' => BELONGS_TO,
				'foreign_key' => 'brand_id',
				'reverse'       => 'has_main_label'
			),
		);
}